获取司机信息
获取司机信息
请求参数 | 类型 | 描述 |
---|---|---|
driver_license | string | 营运资格证号 |
query | object | 声明请求的查询参数 |
region_id | integer | 行政区划代码 |
php
$instance->v3->taxiInvoice->drivers->_driver_license_->getAsync([
'driver_license' => '6298416',
'query' => [
'region_id' => 510100,
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/taxi-invoice/drivers/{driver_license}')->getAsync([
'driver_license' => '6298416',
'query' => [
'region_id' => 510100,
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/taxi-invoice/drivers/{driver_license}']->getAsync([
'driver_license' => '6298416',
'query' => [
'region_id' => 510100,
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->taxiInvoice->drivers->_driver_license_->get([
'driver_license' => '6298416',
'query' => [
'region_id' => 510100,
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/taxi-invoice/drivers/{driver_license}')->get([
'driver_license' => '6298416',
'query' => [
'region_id' => 510100,
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/taxi-invoice/drivers/{driver_license}']->get([
'driver_license' => '6298416',
'query' => [
'region_id' => 510100,
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
driver_name | string | 司机姓名 |
company_name | string | 公司名称 |
company_mchid | string | 商户号 |
driver_license | string | 营运资格证号 |
driver_category | string | 司机类别 |
driver_photo | object | 司机照片 |
photo_type | string | 照片类型 |
photo_digest | object | 司机照片摘要 |
hash_type | string | 哈希类型 |
hash_value | string | 哈希值 |
photo_url | string | 头像url |
photo_data | string | 头像icon |
region_id | integer | 行政区划代码 |
driver_state | string | 司机状态 |
参阅 官方文档